<?php
namespace Admin\Controller;
use Think\Controller;
class AppController extends Controller {
    public function __construct(){

        if(!session('id')){
            exit(json_encode(array('code'=>300,'msg'=>'请先登录')));

        }

    }
}